package com.koron.order.common.bean.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.koron.bean.base.BaseBean;
import com.koron.order.common.bean.po.OrderExecutePart;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * @ClassName OrderExecuteVo
 * @description
 * @Author zhouj
 * @Date 2021/9/16 9:01
 */
@Data
public class OrderExecuteVo extends BaseBean {

    /*工单执行信息*/
    @ApiModelProperty(value = "工单执行ID")
    private String orderExecuteId;

    @ApiModelProperty(value = "工单类型")
    private String orderType;

    @ApiModelProperty(value = "工单表ID")
    private String orderId;

    @ApiModelProperty(value = "工单专业信息表ID")
    private String majorId;

    @ApiModelProperty(value = "执行内容")
    private String context;

    @ApiModelProperty(value = "实际开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date factStartTime;

    @ApiModelProperty(value = "实际结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date factEndTime;

    @ApiModelProperty(value = "是否遗留问题")
    private Integer remainStatus;

    @ApiModelProperty(value = "是否投入运行")
    private Integer runStatus;

    @ApiModelProperty(value = "遗留问题描述")
    private String remainDesc;

    /*工单执行-备件信息*/
    @ApiModelProperty(value = "工单执行-备件信息")
    private List<OrderExecutePart> orderExecutePart;

    @ApiModelProperty(value = "工作负责人")
    private String leader;

    @ApiModelProperty(value = "工作负责人名称")
    private String leaderName;

    @ApiModelProperty(value = "作业单位")
    private String workDept;

    @ApiModelProperty(value = "作业单位名称")
    private String workDeptName;

}
